package com.wjh.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import com.wjh.base.ResponseApiData;
import com.wjh.feign.impl.GoodsFeignClientImpl;
import com.wjh.goods.entity.GoodsEntity;

/**
 * 调用商品服务接口
 * 
 * @author wenjianhai
 * @date 2023/6/26
 * @since JDK 17
 */
@FeignClient(name = "goods-server", path = "/goods/api", fallbackFactory = GoodsFeignClientImpl.class)
public interface IGoodsFeignClient {
	@GetMapping("/queryByGuid/{goodsGuid}")
	ResponseApiData<GoodsEntity> queryByGuid(@PathVariable(value = "goodsGuid") String goodsGuid);
}
